﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using Microsoft.AspNet.SignalR;

namespace Leikjavefurinn.Controllers
{
    public class ATAGameHub : Hub
    {
        public void JoinApples(string groupId)
        {
            Groups.Add(Context.ConnectionId, groupId);
        }

        public void SelectRedCard(string groupName, string redCardId)
        {
            Clients.OthersInGroup(groupName).cellClicked(redCardId);
        }

        public void PickWinner(string groupName, string redCardId)
        {
            Clients.OthersInGroup(groupName).cellClicked(redCardId);
        }
    }


}
